
  var currentPage=1;
xiayibu();
  function xiayibu(){
  	var ss=0;
  	if(currentPage==1 || ss!=0){
	$.ajax({
		url: urlcore + "/api/member/selectAllMember?current="+currentPage,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				ss=data.data.list.length;
				$.each(data.data.list, function(y,n) {
	var  huiyuanchaxun='<li class="clearfix">'+
				'<div class="fl">'+
				'<span>'+n.name+'</span>'+
			'</div>'+
				'<div class="fl">'+
				'<span>'+n.subtitle+'</span>'+
			'</div>'+
			'<div class="fr">'+
				'<em>&yen;'+n.memberMoney+'</em>'+
				'<a href="../12.2.0zhifu_zengzhi.html?hid='+n.id+'">缴费</a>'+
			'</div>'+
		'</li>';
		$("#huiyuanchaxun").append(huiyuanchaxun);
				});
							 var headimg='<dl class="clearfix">'+
		/*					 	'<dd>';
				
		headimg+='</dd>'+*/
		'<dt>'+
			'<img src="'+data.data.user.headImg+'"/>'+
		'</dt>'+
		'<dd>';
		
		
			 if(data.data.user.member!=null && data.data.user.member!=""){
				 	headimg+='<h6>';
				 	    if(data.data.user.userName!=null && data.data.user.userName!=""){
				 	    headimg+=data.data.user.userName+'&nbsp;&nbsp;<font style="width: 100px;height: 25px;" class="zhiti">会员等级'+data.data.user.member.level+'级</font></h6>';
				 	    }else{
				 	   headimg+=data.data.user.wxName+'&nbsp;&nbsp;<font style="width: 100px;height: 25px;" class="zhiti">会员等级'+data.data.user.member.level+'级</font></h6>';
				 	    }
				 
				 }else{
				 	  if(data.data.user.userName!=null && data.data.user.userName!=""){
				 	  	headimg+=	'<h6 id="username">'+data.data.user.userName+'</h6>';
				 	  }else{
				 	 	headimg+=	'<h6 id="username">'+data.data.user.wxName+'</h6>';
				 	    }
				 	
				 }
			if(data.data.user.wantToBuyMemberCount!=null && data.data.user.wantToBuyMemberCount!=""){
				 	headimg+='<p>剩余求购次数:'+data.data.user.wantToBuyMemberCount+'</p>';
				 }
			
		'</dd>'+
				'<dd>';
				   if(data.data.user.isMember==1){
			    if(data.data.user.memberTime!=null && data.data.user.memberTime!=""){
			    	 var oDate1 = new Date(data.data.user.memberTime);
              var oDate2 = new Date();
              if(oDate1.getTime()>oDate2.getTime()){
              	headimg+=	'<p class="youxiaoqi">有效期:'+data.data.user.memberTime+'</p>';
             }else{
             headimg+= 	'<p class="youxiaoqi">会员已过期</p>';
              }
			    	}
			    }else{
			    		headimg+=	'<p class="youxiaoqi">未开通会员服务</p>';
			    }
		headimg+='</dd>'+
	 '</dl>';
	 
         $(".buy_huiyuan_xinxi").html(headimg);			
			} 
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
		
  	}
	}
/*  function dianji(te){
  	    if($(te).next().css('display')=='none'){
  	    	 $(te).next().show();
  	    }else{
  	    		 $(te).next().hide();
  	    }
  }*/

